package com.cloud.sso.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

@Data
public class UserRoleDto {

    @NotNull(message = "用户id不能为空")
    private String userId;

    @Valid
    @NotEmpty(message = "授权角色不能为空")
    private List<RoleOrgDto> roleArray = new ArrayList<RoleOrgDto>();

}
